package io;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @Author @fiber-cloud
 * @Date 2025/10/8 9:12
 */
public class IODemo9 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("d:/test.txt")){
            writer.write("hello world");

        }catch (IOException e){
            e.printStackTrace();
        }
    }

}
